package com.test.thread.consumer;

public class Consumer extends Thread {
	
	private Q q;
	public Consumer(Q q){
		this.q=q;
		this.start();
	}
	public void run(){
		while(true){
			q.get();
			try {
				sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
